package com.yipinhouse.signing.client;

import com.yipinhouse.common.result.Result;
import com.yipinhouse.signing.client.param.UploadContractAttachmentParam;
import com.yipinhouse.signing.client.param.UploadContractParam;
import com.yipinhouse.signing.client.result.ContractResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "contractQueryClient",name="signing",path="contract")
public interface ContractQueryClient {

    @GetMapping("/getContractByUser")
    Result<List<ContractResult>> getContractByUser(@RequestParam("userId") Integer userId);

}
